﻿<!DOCTYPE html>
<html lang="zh">
<head>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
    <meta charset="utf-8" />
    <title>@ViewBag.Title - 资料库 - 第九技术</title>
    <link href="~/favicon.ico" rel="shortcut icon" type="image/x-icon" />
    <meta name="viewport" content="width=device-width" />
    <script src="~/Scripts/jquery-1.8.2.min.js" type="text/javascript"></script>
    <link href="~/Content/Site.css?ver=@DateTime.Now.ToString("hhmmss")" rel="stylesheet" />
    @RenderSection("headerplace", false)
</head>
<body>
    <div id="header">
        <div class="content-wrapper">
            <ul id="logininfo">
                @if (ViewBag.CurrentAuthor != null)
                {
                    <li>@Html.ActionLink("用户中心", "Articles", "User")</li>
                    <li>@Html.ActionLink("退出", "Index", "Logout")</li>
                }
                else
                {
                    <li>@Html.ActionLink("[登录]", "Index", "Login")</li>
                    <li>@Html.ActionLink("[注册]", "Index", "Register")</li>
                }
            </ul>
        </div>
        <div>
            <ul id="menu">
                <li>@Html.ActionLink("手札", "Index", "Home")</li>
                <li>@Html.ActionLink("速记", "Index", "Quote")</li>
                <li>@Html.ActionLink("网址", "Index", "Link")</li>
                <li>@Html.ActionLink("关于", "About", "Home")</li>
            </ul>
        </div>
    </div>
    <div id="body">
        <div class="content-wrapper main-content clear-fix">
            <div class="userPage">
                <div class="sidebar">
                    <ul>
                        <li>
                            <h4>我的手札</h4>
                            <ul>
                                <li>@Html.ActionLink("我的手札", "Articles", "User")</li>
                                <li>@Html.ActionLink("新建手札", "ArticleEdit", "User")</li>
                            </ul>
                        </li>
                        <li>
                            <h4>我的速记</h4>
                            <ul>
                                <li>@Html.ActionLink("我的速记", "Quotes", "User")</li>
                                <li>@Html.ActionLink("新建速记", "QuoteEdit", "User")</li>
                            </ul>
                        </li>
                        <li>
                            <h4>我的链接</h4>
                            <ul>
                                <li>@Html.ActionLink("我的链接", "Links", "User")</li>
                                <li>@Html.ActionLink("新建链接", "LinkEdit", "User")</li>
                            </ul>
                        </li>
                    </ul>
                </div>
                <div class="userContent">
                    @RenderBody()
                </div>
            </div>
        </div>
    </div>
    <div id="footer">
        <div class="content-wrapper">
            <div class="float-left">
                <p>&copy; @DateTime.Now.Year - 资料库 - 第九技术团队</p>
            </div>
        </div>
    </div>
    @RenderSection("scripts", required: false)
</body>
</html>
